import Home from '../page/Home'
import Detail from '../page/Detail'
import NoMatch from '../page/NoMatch'
import Login from '../page/Login'

import List from '../page/Home/List'
import Bill from '../page/Home/Bill'
import Add from '../page/Home/Add'
import My from '../page/Home/My'

const routes = [{
  path: '/home',
  name: '首页',
  component: Home,
  children: [{
    path: '/home/list',
    name: '主页',
    component: List
  }, {
    path: '/home/add',
    name: '添加',
    component: Add
  }, {
    path: '/home/bill',
    name: '账单',
    component: Bill
  }, {
    path: '/home/my',
    name: '我的',
    component: My
  }]
}, {
  path: '/detail',
  name: '首页',
  component: Detail
}, {
  path: '/login',
  name: '首页',
  component: Login
}, {
  from: '/',
  to: '/home'
}, {
  component: NoMatch
}]



export default routes